 <script type="text/javascript">
    jQuery(document).ready(function() {
       
    var sheepItForm = jQuery('#sheepItForm').sheepIt({
        separator: '',
        allowRemoveLast: true,
        allowRemoveCurrent: true,
        allowRemoveAll: true,
        allowAdd: true,
        allowAddN: true,
        maxFormsCount: 20,
        minFormsCount: 0,
        iniFormsCount: 1
    });
});
</script>

<div class="grid_12">
<div class="box">

<div class="header">
   <?php echo $this->Html->image('icons/packs/fugue/16x16/ui-text-field-format.png'); ?>
   <h3>Insertar raza en el grupo <?php echo $id?></h3>
   <span></span>
</div>
<div class="content">
   <?php echo $this->Form->create('GruposRaza')?>
   <div class="_100">
      <label>RAZAS GRUPO</label>
      <p>
      <!--sheepIt Form -->
       <div id="sheepItForm">
                 
                  <!-- Form template-->
                  <div id="sheepItForm_template" class="sheep">
                    <label for="sheepItForm_#index#_phone">Raza <span id="sheepItForm_label"></span></label>
                    <?php echo $this->Form->hidden(null, array('value'=>$id, 'name'=>"data[#index#][GruposRaza][grupo_id]"))?>
                    <?php echo $this->Form->select(null, $razas, array('name'=>"data[#index#][GruposRaza][raza_id]"));?>
                    <a id="sheepItForm_remove_current">
                    <?php echo $this->Html->image('cross.png',array('class'=>'delete'))?>
                    </a>
                  </div>
                  <!-- /Form template-->
                  <!-- No forms template -->
                  <div id="sheepItForm_noforms_template">Sin razas</div>
                  <!-- /No forms template-->
                  <!-- Controls -->
         <div id="sheepItForm_controls">
            <div id="sheepItForm_add" class="btn form add"><a><span>A&ntilde;adir</span></a></div>
            <div id="sheepItForm_remove_last" class="btn form remove"><a><span>Remover</span></a></div>        
          </div>
          <!-- /Controls -->
       </div>
       <!-- /sheepIt Form -->
      </p>
   </div>
   <div class="actions">
	   <div class="actions-left">
	      <input type="reset" value="Limpiar" />
	   </div>
	   <div class="actions-right">
	      <?php $options=array('Value'=>'Registrar')?>
          <?php echo $this->Form->end($options);?>										
       </div>
    </div>
</div>

</div><!--end div box-->
</div>
<div class="grid_4">
			<div id="blocks" class="box tabbed">
		 		<div class="header">
				<h3>Acciones</h3>
				</div>
				<div class="content">
					<ul id="block-list-icons" class="block-list with-icon tab-content">
						<li class="i-16-calendar"><?php echo $this->Html->link('Lista criaderos', array('action'=>'index'));?></li>
						<li class="i-16-application"><?php echo $this->Html->link('Registrar nuevo', array('action'=>'insertar'));?></li>
						<li class="i-16-chart">Reportes</li>
						<li class="i-16-balloon">Lorem ipsum</li>
					</ul>
				</div> <!-- End of .content -->
				</div> <!-- End of .box -->
</div> <!-- End of .grid_4 -->